From 8eb63c28a0acc8b976144dbc72e64acb951e7754 Mon Sep 17 00:00:00 2001
From: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Date: Thu, 16 Mar 2023 23:11:37 +0000
Subject: [PATCH] Drop ``setuptools``

---
 MANIFEST.in    |  9 ---------
 pyproject.toml | 17 +++++++++++++----
 2 files changed, 13 insertions(+), 13 deletions(-)
 delete mode 100644 MANIFEST.in

diff --git a/MANIFEST.in b/MANIFEST.in
deleted file mode 100644
index 7031593..0000000
--- a/MANIFEST.in
+++ /dev/null
@@ -1,9 +0,0 @@
-include README.rst
-include LICENSE
-include CHANGES
-
-include tox.ini
-
-recursive-include sphinxcontrib/htmlhelp/templates *
-recursive-include sphinxcontrib/htmlhelp/locales *
-recursive-include tests *
diff --git a/pyproject.toml b/pyproject.toml
index 0434071..db5919e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [build-system]
-requires = ["setuptools>=64"]
-build-backend = "setuptools.build_meta"
+requires = ["flit_core>=3.7"]
+build-backend = "flit_core.buildapi"
 
 # project metadata
 [project]
@@ -57,8 +57,17 @@ lint = [
 name = "Georg Brandl"
 email = "georg@python.org"
 
-[tool.setuptools.dynamic]
-version.attr = "sphinxcontrib.htmlhelp.__version__"
+[tool.flit.module]
+name = "sphinxcontrib.htmlhelp"
+
+[tool.flit.sdist]
+include = [
+    "CHANGES",
+    "LICENSE",
+    # Tests
+    "tests/",
+    "tox.ini",
+]
 
 [tool.mypy]
 ignore_missing_imports = true
